package com.kx.springmybatis;

import com.kx.springmybatis.event.MyEvent;
import org.springframework.stereotype.Service;

/**
 * @ClassName YHQService
 * @Author Sun
 * @Date 2021/5/18 21:42
 */

//事件的响应机制
@Service
public class YHQService {

    public void onEvent(MyEvent event){
        System.out.println("收到了某个事件"+event);
    }
}
